<?php
session_start(); 
/************************************************************************
*   Copyright 2012 Daniel Schwarz
*
*   Licensed under the Apache License, Version 2.0 (the "License");
*   you may not use this file except in compliance with the License.
*   You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
*   Unless required by applicable law or agreed to in writing, software
*   distributed under the License is distributed on an "AS IS" BASIS,
*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*   See the License for the specific language governing permissions and
*   limitations under the License.
**************************************************************************/
error_reporting(E_ALL);
ini_set('display_errors', 1);

$p = array();
$p['start'] = 'overtime.php';
$p['neu'] = 'neu.php';
$p['admin'] = 'admin.php';
$p['login'] = 'script/login.php';
$p['logout'] = 'script/logout.php';

include 'header.php';
echo "    <body>\n";
include 'menu.php';
echo "<tr><td>";
if (isset($_GET['p'], $p[$_GET['p']])) {
    include $p[$_GET['p']];
} else {
    include $p['start'];
}
echo "</td></tr></table>";
echo "    </body>\n";
echo "</html>\n";
include 'footer.php';
?>